const defaultState = {
    cityName: "上海"
}
const cityList = (state = defaultState, action) => {
    const { value } = action;
    switch (action.type) {
        case "GET_CITY":
            return {
                ...state,
                cityName: value
            }
        case "ALTER_CITY":
            return {
                ...state,
                cityName: value
            }
        default:
            return {
                ...state
            }
    }
}
export default cityList;